package grape.attend.rest.group.mapper;

import grape.attend.service.group.po.Group;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.attend.rest.group.form.GroupCreateForm;
import grape.attend.rest.group.form.GroupUpdateForm;
import grape.attend.rest.group.form.GroupListPageForm;
import grape.attend.rest.group.vo.GroupVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 *  考勤组设置表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-05-08
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface GroupWebMapper extends WebMapper<GroupVo, Group> {

    Group formToPo(GroupCreateForm f);
    Group formToPo(GroupUpdateForm f);
    Group formToPo(GroupListPageForm f);
}
